package Parser;

public class Token {
	private int type;
	private String value;
	
	private int line;
	private int column;
	
	public Token(int newType, int newLine, int newColumn, String newValue){
		type	 = newType;
		value	 = newValue;
		line	 = newLine;
		column   = newColumn;
	}
	
	public int getType(){
		return type;
	}
	
	public String getValue(){
		return value;
	}
	
	public int getColumn(){
		return column;
	}
	
	public int getLine(){
		return line;
	}
	
	public String toString(){
		return String.format("Token: %s on line %d in colum %d ", value, line, column);
	}

}
